﻿@using CV.Resources
@model CV.Model.Experience

@{
    ViewBag.Title = Resources.Edit;
}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h2 class="page-header">@Resources.Edit</h2>


    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            <h4>@Resources.Experience</h4>
            <hr />
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.ID)

            <div class="form-group">
                @*:STC: Begin*@
                @*@Html.LabelFor(model => model.ResumeId, "ResumeId", new { @class = "control-label col-md-2" })*@
                <label class="control-label col-md-2" for="ResumeId">Resume</label>
                @*:STC: End*@
                <div class="col-md-10">
                    @Html.DropDownList("ResumeId", String.Empty)
                    @Html.ValidationMessageFor(model => model.ResumeId)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Employer, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Employer)
                    @Html.ValidationMessageFor(model => model.Employer)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.JobTitle, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.JobTitle)
                    @Html.ValidationMessageFor(model => model.JobTitle)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Industry, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Industry)
                    @Html.ValidationMessageFor(model => model.Industry)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.City, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.City)
                    @Html.ValidationMessageFor(model => model.City)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.StateProvince, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.StateProvince)
                    @Html.ValidationMessageFor(model => model.StateProvince)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.CountryRegion, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.CountryRegion)
                    @Html.ValidationMessageFor(model => model.CountryRegion)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Description, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.StartDate, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.StartDate)
                    @Html.ValidationMessageFor(model => model.StartDate)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.EndDate, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.EndDate)
                    @Html.ValidationMessageFor(model => model.EndDate)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Responsibilities, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Responsibilities)
                    @Html.ValidationMessageFor(model => model.Responsibilities)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Visible, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Visible)
                    @Html.ValidationMessageFor(model => model.Visible)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" value=@Resources.Save class="btn btn-default" />
                </div>
            </div>
        </div>
    }

    <div>
        @Html.ActionLink(Resources.Back, "Index")
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
